<!DOCTYPE html>
<body>
<script src="../../../resources/js-test.js"></script>
<fieldset disabled>
  <input id=input1>
</fieldset>
<script>
var input1 = document.getElementById('input1');
debug('A form control in a disabled fieldset is not focusable:');
shouldBe('input1.focus(); document.activeElement', 'document.body');

debug('It becomes focusable if the fieldset is enabled:');
document.getElementsByTagName('fieldset')[0].disabled = false;
shouldBe('input1.focus(); document.activeElement', 'input1');
</script>
</body>

